{% extends 'store_admin/web_store/blog.html'%}
{% load i18n %}

{% block main_blog %}
	<form name="form" method="post" action=".">
		{% if form.title.errors %}<div class="error">{{ form.title.errors|join:", " }}</div>{% endif %}
		<h4>{% trans "Title" %}:</h4>
		{{ form.title }}
		<br/>
		
		{% if form.body.errors %}<div class="error">{{ form.body.errors|join:", " }}</div>{% endif %}
		<h4>{% trans "Post" %}:</h4>
		{{ form.body }}	
		<br/>
		
		{% if form.meta_content.errors %}<div class="error">{{ form.meta_content.errors|join:", " }}</div>{% endif %}
		<h4>{% trans "Meta Content" %}:</h4>
		{{ form.meta_content }}
		<br/>	
	
		<br/>	
		<button type="submit" class="large awesome">{% trans "Add" %}</button>
		<a href="{% url post_add %}" class="link_cancel">{% trans "Or Cancel" %}</a>
	</form>
{% endblock %}